const { Schema, model } = require('mongoose');
const moment = require('moment')

const lessorsSchema = new Schema({
    //定义好名称后数据库定义名称要一样
    account:String,
    password:String,
    name:String,
    phone:String,
    state:{
        type:String,
        default:1
        //1为正常使用
    },
    credits: {
        type: Number,
        default: 90
    },
    

})

const lessorsModel = model('lessorsModel', lessorsSchema, 'lessors')
module.exports.lessorsModel = lessorsModel
